package mju.cxf.dto;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel(description = "订单数据传输对象")
@Data
public class OrderDTO {


    @ApiModelProperty("id")
    private Integer id; // 订单id

    @ApiModelProperty("number")
    private String number; // 订单编号

    @ApiModelProperty("product_id")
    private Integer productId; //商品id

    @ApiModelProperty("购买商品名称")
    private String name; //商品名称

    @ApiModelProperty(value = "image_url")
    private String imageUrl;     // 商品图片

    @ApiModelProperty("amount")
    private Double amount; //订单金额

    @ApiModelProperty("user_id")
    private Integer userId; //用户id

    @ApiModelProperty("status")
    private Integer status; //状态

    @ApiModelProperty(value = "creation_time")
    private LocalDateTime creationTime; //订单创建id

    @ApiModelProperty("payment_time")
    private LocalDateTime paymentTime; //订单支付时间

    @ApiModelProperty("completion_time")
    private LocalDateTime completionTime; //订单完成时间

    @ApiModelProperty("description")
    private String description; //订单备注




}
